package com.sakura.service;

import com.sakura.dto.QueryCheckRecordDTO;
import com.sakura.dto.UpdateCheckRecordDTO;
import com.sakura.entity.CheckRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.util.R;
import com.sakura.vo.CheckRecordDetailVO;
import com.sakura.vo.UnCheckProjectRecordVO;

import java.util.List;
import java.util.Map;

/**
* @author Sakura
* @description 针对表【check_record】的数据库操作Service
* @createDate 2023-11-22 15:49:03
*/
public interface CheckRecordService extends IService<CheckRecord> {

    List<UnCheckProjectRecordVO> getByElderlyId(Long elderlyId);

    List<UnCheckProjectRecordVO> getFinishedByElderlyId(Long elderlyId, Integer pageNo);

    Map<String,Object> getNeedCheckProject(Long gridId, Integer pageNo);

    R getCheckRecordDetailById(Long recordId);

    R updateCheckRecord(UpdateCheckRecordDTO updateCheckRecordDTO);

    R getPage(QueryCheckRecordDTO queryCheckRecordDTO);
}
